#ifndef __TEST_H__
#define __TEST_H__

int hex2string(unsigned char*src,int src_len,unsigned char*dst,int dst_len);
int string2hex(unsigned char*src,int src_len,unsigned char*dst);
unsigned char* checkhexsum(unsigned char*src,int src_len);

int IsHexChar(char ch);
unsigned char CharToValue(char c);
unsigned char TwoCharToByte(char h,char l);

void sum_valid(char *valid);

unsigned char* dev_login(char*prodkey,char*devtid,int fd);
unsigned char* auth_recog(char*decrypt,int fd);
unsigned char* heart_beat(int fd);
unsigned char* report_state(int fd);
//unsigned char *dev_login(char*prodkey,char*devtid);
#endif